package com.meal.test.returntest;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Title: OrderController
 * @Description: 订单控制层
 * @Author yangzhanghui
 * @Date 2020/5/517:32
 * @Version v1.0
 */
@RestController
@RequestMapping("orders")
public class OrderController {

    @GetMapping("{id}")
    public Result getOrder(@PathVariable("id") Integer id){
        return new Result(ResultCode.SUCCESS, 1);
    }
}
